package com.itheima.sh.a;

public class ShowHandlerDemo {
    public static void main(String[] args) {

        /*useShowHandler(new ShowHandler() {
            @Override
            public void show() {
                System.out.println("666");
            }
        });*/

        //简化
        useShowHandler(() -> System.out.println("666"));
    }
    public static void useShowHandler(ShowHandler sh){
        sh.show();
    }
}
